﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using XRM.Security.DataAccess.Interfaces;

namespace XRM.Security.DataAccess.Models
{
    [Table("PC")]
    public class PC : IRemovable
    {
        public PC()
        {
            Stickers = new List<PCSticker>();
        }

        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int PCId { get; set; }

        [Required]
        [MaxLength(50)]
        public string SerialNumber { get; set; }
        [Required]
        [MaxLength(250)]
        public string PCHost { get; set; }
        [Required]
        public bool IsDeleted { get; set; }

        public virtual ICollection<PCSticker> Stickers { get; set; }
        public virtual ICollection<CertRegister> Certificates { get; set; }
    }
}
